﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
//using MGConsultingModel;
//using MGConsulting.DataServices;

[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Service
{
    // Add [WebGet] attribute to use HTTP GET
    [OperationContract]
    public void DoWork()
    {
        // Add your operation implementation here
        return;
    }
    [OperationContract]
    public IList<Company> GetAllCompanies()
    {
        using (var context = new MGConsultingBODataContext())
        {
            //return context.Company.Include("Methodology").ToList();
            return context.Companies.ToList();
        }
    }

    [OperationContract]
    public IList<Methodology> GetAllMethodologyByCompanyId(int companyId)
    {
        throw new System.NotImplementedException();
    }

    [OperationContract]
    public IList<Roadmap> GetAllRoadMapByMethodologyId(int methodology)
    {
        throw new System.NotImplementedException();
    }

    [OperationContract]
    public IList<Template> GetAllTemplateByMethodologyId(int methodology)
    {
        throw new System.NotImplementedException();
    }
}
